<?php


namespace App\Entity;
use DateTime;
use Exception;
use Doctrine\ORM\Mapping as ORM;

/**
 * @package App\Entity
 * @ORM\Entity
 * @ORM\Table(name="notes")
 * @ORM\HasLifecycleCallbacks
 */
class Notes
{
    /**
     * @var int
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     * @ORM\Column(type="integer")
     */
    private $id;
    /**
     * @var string 留言用户的id
     * @ORM\Column(name="user_id", type="string",nullable=true, length=100, options={"comment"="留言用户的id"})
     */
    private $userId;
    /**
     * @var DateTime
     * @ORM\Column(name="create_date", type="datetime",nullable=false, options={"comment"="创建时间"})
     */
    private $createDate;
    /**
     * @var string 内容
     * @ORM\Column(name="content", type="text", nullable=true, options={"comment"="日常记录内容"})
     */
    private $content;
    /**
     * @var string 类型
     * @ORM\Column(name="type", type="text", nullable=false, options={"comment"="类型"})
     */
    private $type;

    /**
     * @return int
     */
    public function getId(): int
    {
        return $this->id;
    }

    /**
     * @return string
     */
    public function getUserId(): string
    {
        return $this->userId;
    }

    /**
     * @param string $userId
     */
    public function setUserId(string $userId): void
    {
        $this->userId = $userId;
    }
    /**
     * @return DateTime
     */
    public function getCreateDate(): DateTime
    {
        return $this->createDate;
    }

    /**
     * @param DateTime $createDate
     */
    public function setCreateDate(DateTime $createDate): void
    {
        $this->createDate = $createDate;
    }

    /**
     * @return string
     */
    public function getContent(): string
    {
        return $this->content;
    }

    /**
     * @param string $content
     */
    public function setContent(string $content): void
    {
        $this->content = $content;
    }

    /**
     * @return string
     */
    public function getType(): string
    {
        return $this->type;
    }

    /**
     * @param string $type
     */
    public function setType(string $type): void
    {
        $this->type = $type;
    }



}
